import axios from "axios";

let baseURL = import.meta.env.MODE == "development" ? '/api/': window.location.origin

const api = axios.create({
    baseURL: baseURL,
    timeout: 1000 * 10,
    responseType: 'json'
    
})

api.interceptors.request.use((request) => {
    return request
})

export default api